package com.example.demo.cotroller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Slf4j
public class StudentController {
    @RequestMapping("/sayhi2")
    @ResponseBody
    public String sayHi(){
        log.info("Student里的info");
        log.warn("Student里的warn");
        log.error("Student里的error");
       return "你好";
    }
}